package com.spring.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spring.springboot.sys.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


import java.io.Serializable;

/**
 * 附件数据(FileInfo)表实体类
 *
 * @author 宋义州
 * @since 2022-08-12 16:59:17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_file_info")
@ApiModel(description = "附件数据")
public class FileInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 605645302520013005L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    @TableField("main_id")
    @ApiModelProperty(value = "外键")
    private Long mainId;
    
    @TableField("url_path")
    @ApiModelProperty(value = "文件访问路径")
    private String urlPath;
    
}

